package cn.iocoder.yudao.module.pay.controller.app.collect;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.pay.dal.dataobject.paycollectinfo.PayCollectInfoDO;
import cn.iocoder.yudao.module.pay.service.paycollectinfo.PayCollectInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "用户app - 收款账户信息")
@RestController
@RequestMapping("/pay/collect-info")
@Validated
public class AppPayCollectInfoController {

    @Resource
    private PayCollectInfoService collectInfoService;
    @GetMapping("/list")
    @Operation(summary = "获得收款账户信息")
    public CommonResult<List<PayCollectInfoDO>> getCollectInfoPage() {
        return success(collectInfoService.getCollectInfoInUse());
    }

}